package zuoye.ershouche.mapper;


import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import zuoye.ershouche.entity.UserCollectCars;

@Mapper
public interface UserCollectCarsMapper {

    @Insert("insert into sys_user_collect_cars(user_id, car_id) values(#{userId}, #{carId})")
    int insertUserCollectCars(UserCollectCars userCollectCars);

    @Delete("delete from sys_user_collect_cars where user_id = #{userId} and car_id = #{carId}")
    int deleteUserCollectCars(int userId,int carId);
}
